<!DOCTYPE html>
<html lang="">
<head>
	<?php include(ROOT.'/html/_meta_tags.html.php');?>
	<?php include(ROOT.'/html/_css_js.html.php');?>	
</head>

<body>

	<header id="site-header"  >

		<div class="main-wrapper clearfix" style='height:115px;'>

			<a class="left" id="logo" href="<?php echo URL;?>" title='Diseño y Programacion Web'><img src='<?php echo URL;?>/img/logo.png' id='logo_top'></a>
			
    
		     <!-- Main navigation Start -->

			<nav id="main-nav" role="navigation" class="font-main" style='float:right;'>
				<div class="menu-header">
					<?php $MenuTop = crea_menu(1);//pr($MenuTop);?>
					<?php if($MenuTop and !empty($MenuTop)){?>
						<ul id="menu-main-menu" class="menu">
						<?php foreach($MenuTop as $clave=>$valor){?>
							<li id="menu-item-<?php echo $clave;?>" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item current_page_item menu-item-<?php echo $clave;?>">
								<a href="<?php echo $valor['link'];?>"><?php echo $valor['caption'];?></a>
								<?php if(!empty($valor['child'])){?>
									<ul class="sub-menu">
									<?php foreach($valor['child'] as $key=>$value){?>	
										<li id="menu-item-<?php echo $key;?>" 
											class="menu-item menu-item-type-post_type menu-item-object-page menu-item-<?php echo $key;?>">
											<a href="<?php echo $value['href'];?>" title='<?php echo $value['titulo'];?>'><?php echo substr($value['titulo'],0,30);?></a>
										</li>
									
									<?php } //endforeach child ?>			
									</ul>
								<?php } // endif child ?>
							</li>
						
						
						<?php } //endforeach ?>
					
						</ul>
					<?php } //endif MEnuTop ?>
				</div>
			</nav>

	    
			<select class="mobile-menu">
				<option value="Navigation">Menú de Navegación</option>			
				<?php foreach($MenuTop as $clave=>$valor){?>
					<option value='<?php echo $valor['link'];?>'><?php echo $valor['caption'];?></option>
					<?php if(!empty($valor['child'])){?>
						<?php foreach($valor['child'] as $key=>$value){?>	
							<option value='<?php echo $value['link'];?>'>------> <?php echo $value['titulo'];?></option>
						<?php } //endforeach child ?>			
					<?php } // endif child ?>
				<?php } //endforeach ?>
			</select>
		</div>			
	</header>
	
	<?php //include(ROOT.'/html/slide.html.php');?>	
	<?php include(ROOT.'/html/breadcrumb.html.php');?>
